package first.niuke.simple;

/**
 * @ClassName NC103
 * @description:
 * @author: 荣燊
 * @create: 2021-04-09 14:48
 **/
public class NC103 {
    public static String solve (String str) {
        // write code here
        int i = 0;
        int j = str.length()-1;
        char[] str1 = str.toCharArray();
        while (i < j) {
            char c = str1[i];
            str1[i] = str1[j];
            str1[j] = c;
            i++;
            j--;
        }
        return new String(str1);
    }
}
